﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartConference.Domain
{
    /// <summary>
    /// 部门管理信息
    /// </summary>
    [Table("DepartmentInfo")]
    public class DepartmentInfo:BaseEntity
    {
        /// <summary>
        /// 部门Id
        /// </summary>
        [Key]
        public int DepartmentId { get; set; }
        /// <summary>
        /// 部门父级Id
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }=string.Empty;
        /// <summary>
        /// 状态
        /// </summary>
        public DepartmentStatus DepartmentStatus { get; set; }
        /// <summary>
        /// 成员数量
        /// </summary>
        public int MemberNumber { get; set; }
        /// <summary>
        /// 主管人员
        /// </summary>
        public string Governor { get; set; }=string.Empty;
        /// <summary>
        /// 部门描述
        /// </summary>
        public string DepartmentDesc { get; set; }=string.Empty;
    }

    /// <summary>
    /// 部门状态
    /// </summary>
    public enum DepartmentStatus
    {
        /// <summary>
        /// 启用
        /// </summary>
        Enable = 1,
        /// <summary>
        /// 禁用
        /// </summary>
        Disable = 2
    }
}
